<div>
    <table class="table" width="100%"  id ="show_report" layoutH="30" style="overflow:scroll;">
        <thead>
            <tr height="22px">
                <th width="32%"><@label key="message.C">消息</@label></th>
                <th width="22%"><@label key="result.C">结果</@label></th>
                <th width="42%"><@label key="cause.C">原因</@label></th>
            </tr>

        </thead>
        <tbody id="batchjobReportDataBody">
        <#if reports??><#if (reports?size>0)><#list reports as report>
            <tr target="show_report" rel="report_${report.message!''}">
                <td name="message">${report.message!''}</td>
                <td name="result">${report.result!''}</td>
                <td name="cause">${report.cause!''}</td>
            </tr>
        </#list></#if></#if>
        </tbody>
    </table>
</div>
    
<script>
  $(function(){
      //拼接消息报表数据
      var batchjobReportDataJSON=eval( batchjobReportData );
      if(batchjobReportDataJSON){
            var len=batchjobReportDataJSON.length;
          if(len>0)
          {
          var htm='';
           for(var i=0;i<len;i++)
               {    
                      htm+=" <tr target='show_report'"+"><td name='message'>"+
                      batchjobReportDataJSON[i].message+"</td><td name='result'>"+
                      batchjobReportDataJSON[i].result+"</td><td name='cause'>"+
                      batchjobReportDataJSON[i].cause+"</td></tr>";
               }
               $("#batchjobReportDataBody").append(htm);
          }
      }
    
  });


</script>    

